package com.kele.function;

import java.util.function.Function;

/**
 * @author kele
 * @date 2021/10/12 15:10
 * @description Function类型的函数式接口
 * 有一个输入参数有一个输出参数
 */
public class FunctionTest {
    public static void main(String[] args) {

        Function<String, String> function = new Function<String, String>() {

            @Override
            public String apply(String s) {
                return s;
            }
        };

        System.out.println(function.apply("123"));

        Function functionLam=(str)-> str;
        System.out.println(functionLam.apply(11233));
    }
}
